home *** CD-ROM | disk | FTP | other *** search
Makefile | 1996-11-19 | 3.5 KB | 110 lines | [TEXT/MPS ] |
- #
- # File: Makefile
- #
- # Contains: Builds TestMathFSet and it's library file, MathLibrary.
- #
- # Build Command: BuildProgram TestMathFSet
- #
- # Copyright: © 1993 by Apple Computer, Inc., all rights reserved.
- #
- #
-
-
- SRC = :Sources:
- OBJ = :Objects:
- BLT = :Built:
-
- SLMCIncludes = {SLMInterfaces}CIncludes:
- SLMRIncludes = {SLMInterfaces}RIncludes:
-
- #————————————————————————————————————————————————————————————————————————————————————
- # TARGETS
- #————————————————————————————————————————————————————————————————————————————————————
-
- TARGETS = "{BLT}MathLibrary" ∂
- "{BLT}TestMathFSet"
-
- #————————————————————————————————————————————————————————————————————————————————————
- # DEFAULT RULES
- #————————————————————————————————————————————————————————————————————————————————————
-
- .c.o ƒ .c
- Echo "∂t∂tCompiling {Default}.c"
- C {DepDir}{Default}.c -o {Targ} {COptions}
-
- #————————————————————————————————————————————————————————————————————————————————————
- # COMPILER/ASSEMBLER OPTIONS
- #————————————————————————————————————————————————————————————————————————————————————
-
- AOptions = -model far -case on
- COptions = -model far -i {SRC} -mbg on -sym full -mf -b2 -opt full ∂
- -i "{SLMCIncludes}"
-
- #————————————————————————————————————————————————————————————————————————————————————
- # DEPENDENCIES
- #————————————————————————————————————————————————————————————————————————————————————
-
- "{OBJ}" ƒ "{SRC}"
- TestMathFSet ƒ {TARGETS}
-
- #————————————————————————————————————————————————————————————————————————————————————
- # CREATE SHARED LIBRARIES
- #————————————————————————————————————————————————————————————————————————————————————
-
- "{OBJ}MathFSetAdd.c.o" ƒ "{SRC}MathFSet.h" "{SRC}MathFSetAdd.c"
- "{OBJ}MathFSetSub.c.o" ƒ "{SRC}MathFSet.h" "{SRC}MathFSetSub.c"
-
- "{OBJ}MathFSetAdd.RSRC" ƒ "{OBJ}MathFSetAdd.c.o" "{SRC}MathFSetAdd.exp"
- BuildSharedLibrary ∂
- {OBJ}MathFSetAdd.c.o ∂
- -macsbug ∂
- -resid 1 -restype cod1 ∂
- -lib "{OBJ}MathFSetAdd.RSRC" ∂
- -obj "{OBJ}MathFSetAdd" ∂
- -exp "{SRC}MathFSetAdd.exp" ∂
- -i "{SRC}" -i "{SLMCIncludes}" -i "{CIncludes}" -p ∂
- "{SLMLibraries}CFrontLibraries:LibraryManager.o" ∂
- "{Libraries}Runtime.o"
-
- "{OBJ}MathFSetSub.RSRC" ƒ "{OBJ}MathFSetSub.c.o" "{SRC}MathFSetSub.exp"
- BuildSharedLibrary ∂
- {OBJ}MathFSetSub.c.o ∂
- -macsbug ∂
- -resid 2 -restype cod2 ∂
- -lib "{OBJ}MathFSetSub.RSRC" ∂
- -obj "{OBJ}MathFSetSub" ∂
- -exp "{SRC}MathFSetSub.exp" ∂
- -i "{SRC}" -i "{SLMCIncludes}" -i "{CIncludes}" -p ∂
- "{SLMLibraries}CFrontLibraries:LibraryManager.o" ∂
- "{Libraries}Runtime.o"
-
- "{BLT}MathLibrary" ƒ {SRC}MathLibrary.r {OBJ}MathFSetAdd.RSRC {OBJ}MathFSetSub.RSRC
- Echo "∂t∂tRezzing {Targ}"
- Rez -t libr -c OMGR -s "{OBJ}" ∂
- -i "{SLMRIncludes}" -i "{SRC}" ∂
- -o {Targ} "{SRC}MathLibrary.r"
- SetFile -a ib {Targ}
-
- #————————————————————————————————————————————————————————————————————————————————————
- # CREATE TestMathFSet
- #————————————————————————————————————————————————————————————————————————————————————
-
- "{BLT}TestMathFSet" ƒƒ {OBJ}TestMathFSet.c.o
- Echo "∂t∂tLinking {Targ}"
- Link -w -model near -t INIT -c MOOS ∂
- -sn STDIO=Main ∂
- -sn INTENV=Main ∂
- -sn %A5Init=Main ∂
- "{OBJ}TestMathFSet.c.o" ∂
- "{SLMLibraries}CFrontLibraries:LibraryManager.n.o" ∂
- "{CLibraries}StdCLib.o" ∂
- "{Libraries}Interface.o" ∂
- "{Libraries}Runtime.o" ∂
- -o {Targ}
- SetFile {Targ} -t MPST -c 'MPS ' -a ib
-
- "{OBJ}TestMathFSet.c.o" ƒ "{SRC}MathFSet.h" "{SRC}TestMathFSet.c"
- Echo "∂t∂tCompiling {Targ}"
- C "{SRC}TestMathFSet.c" -model near -i {SRC} -mbg on -mf -b2 -opt full ∂
- -i "{SLMCIncludes}" -o "{OBJ}"
-